c# Search specified string inside textbox

91

c# Search specified string inside textbox -

int pos = textbox1.Text.IndexOf("YYMM");
if(pos != -1)
{ 
    textbox1.SelectionStart = pos;
    textbox1.SelectionLength = 4;
    // MessageBox("Error");
} 

Comments

Submit
0 Comments